home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / misc / vinced / vincupdate / extras / stringsnip < prev    next >
Text File  |  1999-04-19  |  10KB  |  307 lines

  1. Short:    Much better editing features in string gadgets
  2. Uploader: thor@einstein.math.tu-berlin.de
  3. Author:   thor@einstein.math.tu-berlin.de (Thomas Richter)
  4. Type:     util/sys
  5. Version:  2.03
  6. Requires: Os 2.04, optionally ViNCEd.
  7. _____________________________________________________________________________
  8.  
  9. New in release 2.03:
  10.  
  11.     - Fixed a possible incompatibility of Amiga-V that could have
  12.       resulted in inserting a string twice if the application edit
  13.       hook is able to parse this key as well.
  14.  
  15. New in release 2.02:
  16.  
  17.     - The NumLock function was erraneously bound to Alt-Ü on german
  18.       keyboards. Never thrust a Data-Becker book, especially when
  19.       looking up key-codes.
  20.  
  21. New in release 2.01.1:
  22.  
  23.     - Included a sample preferences file for those people that don't
  24.       read ReadMes. (-;
  25.  
  26. New in release 2.01:
  27.  
  28.     - Almost a complete rewrite, fully configurable with ViNCEd style
  29.       preferences (vnc.library required).
  30.     - Includes now TAB expansions and much more editor commands.
  31. _____________________________________________________________________________
  32.  
  33.  
  34. The following table shows the default configuration for string gadget hooks:
  35.  
  36. Alt+Cursor keys:    Move to beginning of next/previous word
  37. Alt+Ctrl+Cursor keys:    Move to beginning of next/previous path component
  38. Shift+Cursor keys:    Move to start/end of the contents.
  39. Alt+Cursor keys:    ditto.
  40. Alt+Del:        Clear the contents.
  41. Shift+Del:        ditto.
  42. ALT+Backspace:        Erase to the beginning of the word under the cursor
  43. Shift+Alt+Del:        Erase text behind the cursor
  44. Shift+Alt+BS:        Erase text before the cursor position
  45. Amiga+X:        Cut the contents of the gadget to the clipboard
  46. Amiga+C:        Copy the contents to the clipboard
  47. Amiga+V:        Insert the clipboard contents into the gadget
  48. Shift+Amiga+V:        Replace the string gadget contents by the clipboard
  49. Aniga+Q:        Undo-operation
  50. Ctrl+Tab:        TAB expansion
  51. Ctrl+Shift+Tab:        TAB expansion backwards
  52. Commodore-key:        Turn off the extended editing features temporary
  53.  
  54.  
  55. The configuration is, however, fully adjustable with the SetVNC program
  56. of the "ViNCEd" package, see below for details.
  57.  
  58. The TAB expansion is a "cut down" version of the ViNCEd style expansion
  59. mechanism without a double-TAB requester, without the complete command
  60. path search and without a TAB expansion cache.
  61. Please note that string gadget does not come with a "natural" directory the 
  62. TAB expansion should search in, hence the path to be expanded must be either
  63. absolute or relative to the boot volume, i.e. SYS:
  64.  
  65. (This file is actually a part of the ViNCEd distribution. See 
  66. util/shell/ViNCEd.lha for the complete archive).
  67.  
  68.  
  69. Installation:
  70.     Copy to your C: drawer.
  71.  
  72.     StringSnip install    To install the extended editing features
  73.     StringSnip remove    To remove it again.
  74.  
  75. Additionally:    
  76.     Copy the demo prefs file below to ENVARC:StringSnip.prefs and 
  77.     add the line
  78.  
  79.     StringSnip PREFS ENV:StringSnip.prefs INSTALL
  80. _____________________________________________________________________________
  81.  
  82. Extended options, full synopsis:
  83.  
  84. StringSnip INSTALL/S,REMOVE/S,PREFS/K,HELP/S
  85.  
  86.  
  87. INSTALL/S            Installs the enhanced string edit hook
  88.                 or replaces a previously installed 
  89.                 "StringSnip" copy.
  90.                 This is the default operation.
  91.  
  92. REMOVE/S            Remove the StringSnip hook.
  93.  
  94. PREFS/K                Specifies a file name where the preferences
  95.                 should be taken from. This is a text based
  96.                 ViNCEd-compatible preferences file. It
  97.                 should be created by the "SetVNC" program
  98.                 and should be placed somehwere in the ENV:
  99.                 drawer.
  100.                 THIS OPTION REQUIRES the vnc.library, i.e.
  101.                 ViNCEd must have been installed.
  102.  
  103. HELP/S                Prints a tiny overview about the command line
  104.                 options.
  105. _____________________________________________________________________________
  106.  
  107. The preferences file: 
  108.  
  109. It is recommended that you use the "SetVNC" program of the ViNCEd package
  110. to generate this file, as the vnc.library is required anyways to read it.
  111.  
  112. As last resort, an ASCII editor is enough to edit this file, though.
  113.  
  114. The file is a listing of options, followed by an "=" ("equals") sign,
  115. followed by the value you want to set the option to. This must be "on"
  116. or "off" for boolean options, a number for numerical or a key specification
  117. for the keyboard configuration options. Commands must be introduced by a
  118. semicolon.
  119.  
  120. Here's a list of the options that are meaningfull to StringSnip. The lines
  121. below could be cut out and written directly to a file, for example to
  122. ENVARC:StringSnip.prefs.
  123.  
  124. ___________cut here__________________________________________________________
  125.  
  126. WRAP=off        
  127. ;whether the TAB expansion wraps around or not.
  128.  
  129. ;TAB expansion settings:
  130. ;These are priorities how the list of found nodes are sorted and in
  131. ;which order they appear. The list of found matches can be cycled thru
  132. ;with the TAB expansion keys, as in ViNCEd.
  133.  
  134. TAB_FILE_PRI=0        
  135. ;priority of non-executable non-script files
  136. TAB_EXEC_PRI=2        
  137. ;priority of executables.
  138. TAB_SCRIPT_PRI=1    
  139. ;priority of script files.
  140. TAB_INFO_PRI=-10    
  141. ;priority of icons
  142. TAB_DEVICE_PRI=-2    
  143. ;of devices
  144. TAB_ASSIGN_PRI=-2    
  145. ;of assigns (logical devices)
  146. TAB_VOLUME_PRI=-2    
  147. ;of volume names
  148. TAB_DIRECTORY_PRI=3    
  149. ;of directories
  150. TAB_FULLEXPAND=off    
  151. ;should the first TAB expand the file completely?
  152.  
  153.  
  154. ;Keyboard:
  155. ;These are one or more qualifiers, i.e.
  156. ; Alt, Shift for either shift or alt key, RAmiga, LAmiga, RShift, LShift,
  157. ; RAlt, RAlt for the right/left modifier keys, "Num" if numlock is "on".
  158. ; The numlock is a special modifier that is toggled by an additional key
  159. ; to be set up here, it is completely unrelated to the "numeric keypad"
  160. ;and a key name, as "Left" "Right" for the cursor keys or
  161. ;a keyboard code, or an ASCII value enclosed in single quotes if the
  162. ;key should be matched on an ASCII string and not on a physical key.
  163. ;Details about this again in the ViNCEd guide.
  164. ;
  165. CURSOR_LEFT=Left
  166. CURSOR_RIGHT=Right        
  167. ;guess what...
  168. HALF_SCREEN_LEFT=Shift Left    
  169. ;moves one string gadget width
  170. HALF_SCREEN_RIGHT=Shift Right    
  171. ;to the left/right (not used by default)
  172. TO_LEFT_BORDER=Ctrl Left
  173. TO_RIGHT_BORDER=Ctrl Right    
  174. ;moves to the boundary
  175. PREV_WORD=Alt Left
  176. NEXT_WORD=Alt Right        
  177. ;moves word-wise
  178. PREV_COMPONENT=Ctrl Alt Left
  179. NEXT_COMPONENT=Ctrl Alt Right    
  180. ;moves path-component-wise
  181. CURSOR_LEFT=Num Num4
  182. CURSOR_RIGHT=Num Num6        
  183. ;more than one definition is allowed!
  184. TO_LEFT_BORDER=Ctrl Left
  185. TO_RIGHT_BORDER=Ctrl Right
  186. SEND_INPUTS=Return        
  187. ;completes the input
  188. INSERT_^J=Shift Alt Return    
  189. ;inserts a Ctrl-J.
  190. TAB_FORWARDS=Tab
  191. TAB_BACKWARDS=Shift Tab        
  192. ;TAB cycling
  193. EXPAND_PATH=Ctrl Tab
  194. EXPAND_BACKWARDS=Ctrl Shift Tab    
  195. ;TAB expansion
  196. DELETE_FORWARDS=Del        
  197. ;the "Delete" function
  198. DELETE_BACKWARDS=Backspace    
  199. ;the "Backspace" function
  200. DELETE_FULL_LINE=Shift Del    
  201. ;delete all
  202. DELETE_WORD_FWDS=Shift Backspace
  203. DELETE_WORD_BKWDS=Alt Backspace    
  204. ;one word, backwards
  205. DELETE_COMPONENT_FWDS=Ctrl Alt Del
  206. DELETE_COMPONENT_BKWDS=Ctrl Alt Backspace
  207. DELETE_END_OF_LINE=Shift Alt Del
  208. DELETE_START_OF_LINE=Shift Alt Backspace
  209. ;the next are the standard clipboard functions
  210. CUT=RAmiga x            
  211. COPY=RAmiga c
  212. PASTE=RAmiga v
  213. TOGGLE_NUMLOCK=Alt Num[        
  214. ;Num[ is the '[' key on the numpad, this toggles the NumLock qualifier.
  215. YANK=RAmiga q            
  216. ;this is the intuition style "undo"
  217. HELP=Help            
  218. ;the HELP function, if used by the program
  219. INSERT_CSI=Alt Esc        
  220. ;inserts 0x9B
  221. INSERT_ESC=Shift Esc        
  222. ;inserts 0x1B
  223.  
  224. _____________________________________________________________________________
  225.  
  226.                          The THOR-Software Licence (v2, 24th June 1998)
  227.  
  228.  
  229. This License applies to the computer program known as "StringSnip".
  230. The "Program", below, refers to such program. The "Archive" refers to the 
  231. package of distribution, as prepared by the author of the Program, 
  232. Thomas Richter. Each licensee is addressed as "you".
  233.  
  234.  
  235.  
  236. The Program and the data in the archive are freely distributable
  237. under the restrictions stated below, but are also Copyright (c)
  238. Thomas Richter.
  239.  
  240. Distribution of the Program, the Archive and the data in the Archive by a
  241. commercial organization without written permission from the author to any
  242. third party is prohibited if any payment is made in connection with such
  243. distribution, whether directly (as in payment for a copy of the Program) or
  244. indirectly (as in payment for some service related to the Program, or
  245. payment for some product or service that includes a copy of the Program
  246. "without charge"; these are only examples, and not an exhaustive enumeration
  247. of prohibited activities).
  248.  
  249.  
  250. However, the following methods of distribution
  251. involving payment shall not in and of themselves be a violation of this
  252. restriction:
  253.  
  254.  
  255. (i) Posting the Program on a public access information storage and
  256. retrieval service for which a fee is received for retrieving information
  257. (such as an on-line service), provided that the fee is not
  258. content-dependent (i.e., the fee would be the same for retrieving the same
  259. volume of information consisting of random data).
  260.  
  261.  
  262. (ii) Distributing the Program on a CD-ROM, provided that
  263.  
  264. a) the Archive is reproduced entirely and verbatim on such CD-ROM, including
  265. especially this licence agreement;
  266.  
  267. b) the CD-ROM is made available to the public for a nominal fee only,
  268.  
  269. c) a copy of the CD is made available to the author for free except for
  270. shipment costs, and
  271.  
  272. d) provided further that all information on such CD-ROM is redistributable
  273. for non-commercial purposes without charge.
  274.  
  275.  
  276. Redistribution of a modified version of the Archive, the Program or the
  277. contents of the Archive is prohibited in any way, by any organization,
  278. regardless whether commercial or non-commercial. Everything must be kept
  279. together, in original and unmodified form.
  280.  
  281.  
  282.  
  283.  
  284. Limitations.
  285.  
  286.  
  287. THE PROGRAM IS PROVIDED TO YOU "AS IS", WITHOUT WARRANTY. THERE IS NO
  288. WARRANTY FOR THE PROGRAM, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
  289. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
  290. PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE
  291. RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD
  292. THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  293. SERVICING, REPAIR OR CORRECTION.
  294.  
  295.  
  296. IF YOU DO NOT ACCEPT THIS LICENCE, YOU MUST DELETE THE PROGRAM, THE ARCHIVE
  297. AND ALL DATA OF THIS ARCHIVE FROM YOUR STORAGE SYSTEM. YOU ACCEPT THIS
  298. LICENCE BY USING OR REDISTRIBUTING THE PROGRAM.
  299.  
  300.  
  301.                                                         Thomas Richter
  302.  
  303. _____________________________________________________________________________
  304.  
  305. Thomas,
  306.     March 1999
  307.